package com.smh.a18exerciseDemo5;

import java.util.ArrayList;
import java.util.Collections;

public class Test {
    public static void main(String[] args) {

        ArrayList<Integer> list = new ArrayList<>();
        Collections.addAll(list, 10, 5, 10, 50, 100, 200, 500, 800, 2, 80, 300, 700);

        MyThread t = new MyThread(list);
        MyThread t2 = new MyThread(list);
        t.setName("抽奖箱1");
        t2.setName("抽奖箱2");
        t.start();
        t2.start();


    }
}
